package com.yanqu.road.entity.player;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.DataStatus;

/**
 * 玩家建筑管理类
 *
 */
public class UserBuildingManger extends DataObject {

	private long userId;

	/**
	 * 建筑管理的id
	 */
	private int buildingMangerId;

	/**
	 * 经验
	 */
	private int exp;

	private long lastUpdateTime;

	public long getUserId() {
		return userId;
	}

	public void setUserId(long userId) {
		if (this.userId != userId) {
			this.userId = userId;
			this.setOp(DataStatus.Update);
		}
	}

	public int getBuildingMangerId() {
		return buildingMangerId;
	}

	public void setBuildingMangerId(int buildingMangerId) {
		if (this.buildingMangerId != buildingMangerId) {
			this.buildingMangerId = buildingMangerId;
			this.setOp(DataStatus.Update);
		}
	}

	public int getExp() {
		return exp;
	}

	public void setExp(int exp) {
		if (this.exp != exp) {
			this.exp = exp;
			this.setOp(DataStatus.Update);
		}
	}

	public long getLastUpdateTime() {
		return lastUpdateTime;
	}

	public void setLastUpdateTime(long lastUpdateTime) {

		if (this.lastUpdateTime != lastUpdateTime) {
			this.lastUpdateTime = lastUpdateTime;
			this.setOp(DataStatus.Update);
		}
	}

}
